#!/bin/bash
cd /opt/gitee/zhihu/FlyCms
git reset --hard
git pull
#mvn clean package -Dmaven.test.skip=true -Ptest

mvn clean compile
#让内部项目找到
mvn install
mvn package

cp /opt/gitee/zhihu/FlyCms/target/dist/flycms/flycms.jar  /opt/gitee/zhihu/FlyCms/flycms.jar

chmod 777 -R /opt/gitee/zhihu/FlyCms/*.sh
chmod 777 -R /opt/gitee/zhihu/flycms-admin/*.sh
